package org.dromara.business.domain.bo;

import org.dromara.business.domain.UserLevelExperienceLog;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 用户等级经验变动记录业务对象 t_user_level_experience_log
 *
 * @author Hao Tong Xue
 * @date 2025-04-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = UserLevelExperienceLog.class, reverseConvertGenerate = false)
public class UserLevelExperienceLogBo extends BaseEntity {

    /**
     * 记录 ID
     */
    @NotNull(message = "记录 ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户 ID
     */
//    @NotNull(message = "用户 ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 经验变动数额
     */
    @NotNull(message = "经验变动数额不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer changeExperience;

    /**
     * 经验变动类型：0-登录，1-观看，2-投稿，3-点赞，4-评论
     */
    @NotNull(message = "经验变动类型：0-登录，1-观看，2-投稿，3-点赞，4-评论，5-投币", groups = { AddGroup.class, EditGroup.class })
    private Integer changeType;

    /**
     * 备注
     */
    private String remark;

}
